import request from '@/utils/request'

// 查询薪酬总表列表
export function listRemuneration(query) {
  return request({
    url: '/basebill/remuneration/list',
    method: 'get',
    params: query
  })
}

// 查询薪酬总表详细
export function getRemuneration(fid) {
  return request({
    url: '/basebill/remuneration/' + fid,
    method: 'get'
  })
}

// 新增薪酬总表
export function addRemuneration(data) {
  return request({
    url: '/basebill/remuneration',
    method: 'post',
    data: data
  })
}

// 修改薪酬总表
export function updateRemuneration(data) {
  return request({
    url: '/basebill/remuneration',
    method: 'put',
    data: data
  })
}

// 删除薪酬总表
export function delRemuneration(fid) {
  return request({
    url: '/basebill/remuneration/' + fid,
    method: 'delete'
  })
}

// 审核薪酬总表
export function handleAudit(fid) {
  return request({
    url: '/basebill/remuneration/audit/' + fid,
    method: 'put'
  })
}

// 反审核薪酬总表
export function handleDeAudit(fid) {
  return request({
    url: '/basebill/remuneration/deAudit/' + fid,
    method: 'put'
  })
}

// 废弃薪酬总表
export function handleDisuse(fid) {
  return request({
    url: '/basebill/remuneration/disuse/' + fid,
    method: 'put'
  })
 }
//修改单据状态
export function operation(fids,fstate){
  return request({
    url:'/basebill/remuneration/operation/' + fids+'/'+fstate,
    method:'put'
  })
}
